package com.xyoto.community.dto;

import com.alibaba.excel.annotation.format.NumberFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * ClassName:   新增动态表单DTO
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/

@Data
@ApiModel("新增动态DTO")
public class SaveDynamicDTO {

    @ApiModelProperty(value = "话题id", name = "topicId")
    @Min(value = 1,message = "话题id值非法")
    private Integer topicId;

    @ApiModelProperty(value = "发布动态的位置", name = "dynamicPlace")
    private String dynamicPlace;

    @ApiModelProperty(value = "动态内容", name = "content", required = true)
    @NotBlank(message = "动态内容不能为空")
    private String  content;

    @ApiModelProperty("图片数组集合在redis中的key")
    private String group;

    @ApiModelProperty("匿名用户记录id")
    private Integer anonymousUserId;
}
